package com.sy.mapper;

import com.sy.bean.GoodsList;
import com.sy.bean.pucharse.excel.GoodsExcel;
import com.sy.bean.pucharse.excel.GoodsImportExcel;
import com.sy.common.crud.IMapper;
import com.sy.common.crud.IService;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface GoodsListConditionMapper extends IMapper<GoodsList> {
    /**
     * 商品导出excel
     * @param map
     * @return
     */
    List<GoodsExcel> goodsExport(Map map);

    /**
     * 批量导入商品
     * @param list
     * @return
     */
    int batchImport(@Param("list") List<GoodsImportExcel> list);


    /**
     * 批量启用
     * @param ids
     * @return
     */
    int batchUpdate(@Param("ids") List<Integer> ids);

}
